package com.peng.mvvm_wan

import android.app.Application
import com.peng.safety.utils.SnackUtil
import com.scwang.smart.refresh.header.BezierRadarHeader
import com.scwang.smart.refresh.layout.SmartRefreshLayout

class MyApplication : Application() {

    override fun onCreate() {
        super.onCreate()
        SnackUtil.init(this)
        SmartRefreshLayout.setDefaultRefreshHeaderCreator { context, layout ->
            layout.setPrimaryColorsId(R.color.colorPrimary, R.color.colorAccent)
            BezierRadarHeader(context)
        }
    }
}